<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			.div1{
				display: table-cell;
				height: 400px;
				width: 300px;
				display: table-cell;
				border: 1px solid red;
				vertical-align: middle;
				text-align: center;
			}
			.img1{
				max-height: 100px;
				max-width: 100px;
			}
			.div2{
				width: 400px;
				height: 400px;
				border: 1px solid #444444;
				background: url(img/login.jpg) no-repeat center;
			}
			.div3{
				width: 400px;
				height: 300px;
				border: 1px solid greenyellow;
				text-align: center;
			}
			.div3 p{
				width: 400px;
				height: 300px;
				line-height: 300px;
				margin: 0;
			}
			.div3 p img{
				vertical-align: middle;
				max-width: 200px;
				max-height: 300px;
			}
			.div4{
				width: 400px;
				height: 300px;
				position: relative;
				border: 1px solid aquamarine;
			}
			.div4 img{
				margin: auto;  
				position: absolute;  
				top: 0; left: 0; bottom: 0; right: 0;
				max-width: 300px;
				max-height: 200px;
			}
			.div5{
				display: flex;
				width: 400px;
				height: 300px;
				justify-content: center;
				align-items: center;
				border: 1px solid lightgoldenrodyellow;
			}
			.div5 img{
				max-width: 300px;
				max-height: 200px;
			}
		</style>
	</head>
	<body>
		<!--display table-cell-->
		<div class="div1">
			<img class="img1" src="img/login.jpg"/>
		</div>
		<!--background 水平垂直居中-->
		<div class="div2"></div>
		<div class="div3">
			<p><img src="img/login.jpg"/></p>
		</div>
		<div class="div4">
			<img src="img/login.jpg"/>
		</div>
		<div class="div5">
			<img src="img/login.jpg" />
		</div>
	</body>
</html>
